package com.ty.store.util;

import lombok.Data;

import java.io.Serializable;

/**
 * @author ty
 */
@Data
public class JsonResult<T> implements Serializable {
    private Integer state;
    private String message;
    private T Data;
    public JsonResult(){

    }
    public JsonResult(Integer state){
        this.state = state;
    }
    public JsonResult(Integer state, T data){
        this.state = state;
        this.Data = data;
    }
    public JsonResult(Throwable e){
        this.message = e.getMessage();
    }
}
